package cn.stazxr.listener;

import java.awt.*;

/**
 * Package: cn.stazxr.listener
 * Listener
 * @Author: stazxr
 * @Create: 2023/12/2
 * @Version: v1.0
 **/
public class ListenerTest2 {
    public static void main(String[] args) {
        Frame frame = new Frame("Hello World!");
        frame.setBounds(500, 300, 500, 300);
        frame.setAlwaysOnTop(true);

        frame.addMouseWheelListener(e -> {
            System.out.println("ScrollAmount = " + e.getScrollAmount());
        });
        frame.setVisible(true);
    }
}
